import request from '@/utils/request'

// 查询招聘需求明细列表
export function listRecruitDemandItem(query) {
  return request({
    url: '/hrm/recruitDemandItem/list',
    method: 'get',
    params: query
  })
}

// 查询招聘需求明细详细
export function getRecruitDemandItem(id) {
  return request({
    url: '/hrm/recruitDemandItem/' + id,
    method: 'get'
  })
}

// 新增招聘需求明细
export function addRecruitDemandItem(data) {
  return request({
    url: '/hrm/recruitDemandItem',
    method: 'post',
    data: data
  })
}

// 修改招聘需求明细
export function updateRecruitDemandItem(data) {
  return request({
    url: '/hrm/recruitDemandItem',
    method: 'put',
    data: data
  })
}

// 删除招聘需求明细
export function delRecruitDemandItem(id) {
  return request({
    url: '/hrm/recruitDemandItem/' + id,
    method: 'delete'
  })
}
